package com.pitb.citizenreporting;

import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;

import android.app.AlarmManager;
import android.app.Application;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;

public class App extends Application {
	private static App instance;		

	public static App getInstance() {
		return instance;
	}

	public void onCreate() {
		super.onCreate();
		instance = this;
	}
	
	public static String getDateTime() {
		Date date = new Date();
		java.text.DateFormat dateFormat = android.text.format.DateFormat
				.getDateFormat(getInstance().getApplicationContext());
		String currentDateTimeString = DateFormat.getTimeInstance().format(
				new Date());
		return  dateFormat.format(date) + " " + currentDateTimeString ;
	}
}
